﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><div class="topbar w980">
        <div class="l"><a href="{webroot}">首页</a></div>
        <div class="r" id="userpanel">Loading</div>
    </div>
    <div id="header">
        <div class="logo l"><img src="{webroot}theme/default/images/logo.gif" width="315" height="50" /></div>
        <div class="hotkey l">热门：{sdcms:rs top="3" table="sd_expand_keyword" where="islock=1" order="hits desc,id desc"}<a href="{webroot}plug/search.asp?key={server.urlencode($rs[title])}" title="{$rs[title]}">{sdcms.cutstr($rs[title],8,0)}</a> {/sdcms:rs}</div>
        <div class="r"><form action="{webroot}plug/search.asp" onsubmit="return checksearch(this)"><input type="text" name="key" class="keyword" /><input type="image" src="{webroot}theme/default/images/bnt_search.gif" /></form></div>
    </div>
    <div id="nav">
        <div class="r"><img src="{webroot}theme/default/images/nav_r.gif" width="2" height="42" /></div>
        <div class="l"><img src="{webroot}theme/default/images/nav_l.gif" width="2" height="42" /></div>
        <div class="l">
            <ul class="menu">
                <li><a href="{webroot}">网站首页</a></li>
                {sdcms:rs top="0" table="sd_category" where="followid=0 and ismenu=1" order="ordnum,cateid" var="sdcms_rp:cateid"}
                <li class="mid"></li>
                <li><a href="{$rs[link]}"{if $rs[modeid]=-2} target="_blank"{/if}>{$rs[catename]}</a>
                <dl class="subnav">
                {sdcms:rp top="0" table="sd_category" where="followid=[sdcms_rp] and ismenu=1" order="ordnum,cateid"}
                    <dt><a href="{$rp[link]}"{if $rp[modeid]=-2} target="_blank"{/if}>{$rp[catename]}</a></dt>
                {/sdcms:rp}
                </dl>
                </li>
                {/sdcms:rs}
            </ul>
        </div>
        <div class="l"><img src="{webroot}theme/default/images/nar_right.gif" width="5" height="42" /></div>
        <div class="date"><a href="{webroot}plug/tags.asp">Tags</a>　|　<a href="{webroot}plug/rss.asp">RSS</a>　|　<a href="{webroot}plug/book.asp">留言</a></div>
    </div>